<style>

.dtable{display:table;width:auto;margin:0px auto;}
.dlcell{display:table-cell;text-align:right;width:150px;}
.drcell{display:table-cell;text-align:left;width:450px;padding-left:10px;}

</style>
<script charset="utf-8" src="/res/lib/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="/res/lib/kindeditor/zh_CN.js"></script>
<script>
jQuery(function(){
	$('#lang').change(function(){
		$.get('/admin.php?mo=bottomInfo&lang='+$(this).val()+'&ajax=1', function(data){
			editor.html(data);
		});
	});
});
var editor;
KindEditor.ready(function(K) {
	editor = K.create('textarea[name="content"]', {
		resizeType : 1,
		allowPreviewEmoticons : false,
		allowImageUpload : false,
		items : [
			'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
			'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
			'insertunorderedlist', '|', 'emoticons', 'image', 'link']
	});
});
</script>
<div id="main">
    <div class="dtable">
		<form action="admin.php?mo=action&do=bottomInfo" method="post" name="form1" id="form1">
        <div>
            <span class="dlcell">{$SelectLangVersionText}: </span>
            <span class="drcell">
            	<select id="lang" name="lang">
                {loop $langList $k $v}
                <option value="{$k}">{$v}</option>
                {/loop}
                </select>
            </span>
        </div>
        <div>
            <span class="dlcell">{$ContentText}: </span>
            <span class="drcell">
            <textarea id="content" name="content" style="width:700px;height:200px;visibility:hidden;">{$content}</textarea>
            </span>
        </div>
        <div>
            <span class="dlcell"></span>
            <span class="drcell">
            <input type="submit" value="{$SubmitText}" />
            </span>
        </div>
        </form>
    </div>
</div>